﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }


        Form2 frm2;
        Form3 frm3;
        Form4 frm4;
        Form6 frm6;

        private void toolStripTextBox1_Click(object sender, EventArgs e)
        {

           

            if (frm2 == null || frm2.IsDisposed)
            {
                frm2 = new Form2();
                frm2.MdiParent = this;
                frm2.WindowState = FormWindowState.Maximized;
                frm2.Show();
            }
            else
            {
                frm2.Activate();
            }

            
        }

        private void toolStripTextBox2_Click(object sender, EventArgs e)
        {

           

            if (frm3 == null || frm3.IsDisposed)
            {
                frm3 = new Form3();
                frm3.MdiParent = this;
                frm3.WindowState = FormWindowState.Maximized;
                frm3.Show();
            }
            else
            {
                frm3.Activate();
            }

        }

        private void toolStripTextBox3_Click(object sender, EventArgs e)
        {

            if (frm4 == null || frm4.IsDisposed)
            {
                frm4 = new Form4();
                frm4.MdiParent = this;
                frm4.WindowState = FormWindowState.Maximized;
                frm4.Show();
            }
            else
            {
                frm4.Activate();
            }

        }

        private void toolStripTextBox4_Click(object sender, EventArgs e)
        {
            if (frm6 == null || frm6.IsDisposed)
            {
                frm6 = new Form6();
                frm6.MdiParent = this;
                frm6.WindowState = FormWindowState.Maximized;
                frm6.Show();
            }
            else
            {
                frm6.Activate();
            }
        }

        
    }
}
